
totalrename()
{
   name1=$1 
   name2=$2
   du ../../ -a | grep -v totalrename.sh | grep -v git | cut -f 2 | grep $name1 | awk '//{print $1 " " $1}' | sed "s/$name1/$name2/" | awk '//{print $2 " " $1}' | xargs -tI + sh -c "mv +"

   grep -Rli $name1 ../../ | grep -v totalrename.sh | grep -v git | xargs -t -n 1 sed -i "s/$name1/$name2/g"

}

totalrenamelist()
{



totalrename "permute-xmatrix-comp-rnd"             "permute-xmatrix-comp-random"       
totalrename "permute-xmatrix-comp-det"             "permute-xmatrix-comp-deterministic"       
totalrename "permute-xmatrix-comp-sec"             "permute-xmatrix-comp-confidential"       

}

totalrenamelist

